unit dbcASASQLExec;
// Database Comparer VCL v.3.0
// Copyright (C) 1998-2006, by Boris Loboda
// www.CleverComponents.com
{$I Comparer.INC}

// History:
// 27.04.2005 (BL)
// - First implementation.

interface

Uses
  {$IFNDEF FPC}Windows, {$ENDIF} SysUtils, Classes,
  dbcSQL_Exec, dbcDBEngine, dbcASAParser, dbcTypes;

type
  TASASQLExec = class(TSQLExec)
  protected
    fParser: TASAParser;
    function RunCreateDb(): Boolean; override;
    procedure AddStatement(Sender: TObject;
                           aText: String;
                           aTyp: TStatType;
                           aObjName: String;
                           aObjType: TDbObject;
                           aOperation: TDbOperation;
                           aOwnName: String;
                           var Statement: TObject);
  public
    constructor Create(aOwner: TComponent); override;
    destructor Destroy; override;
    function ExecuteScript(): Boolean; override;
    procedure LoadScript(aScript: TStrings); override;
  published
    property DBCConnection: TDBCCustomConnection read fConnection write SetConnection;
    property ASAServerOptions;
    property BreakOnError;
    property OnLogNextLine;
    property OnProgressUpdate;
    property OnErrorMessage;
    property OnBeforeStatementExecute;
    property OnAfterStatementExecute;
    property OnStatementCreate;
    property OnStatementAdd;
    {$ifdef Delphi2009}
    property Encode;
    {$endif}
  end;

implementation

//The full source code is available on purchasing the product

end.
